package com.robotserver.orders.service;

import com.robotserver.orders.entity.VipTokens;
import com.robotserver.orders.vo.VipOrderTimeVO;
import com.vip.adp.api.open.service.OrderInfo;

import java.util.List;

/**
 * @Auther: jianghan
 * @Date: 2020/12/2 14:05
 * @Description:
 */
public interface VipOrderSyncService {
    void threadSyncOrder(List<VipOrderTimeVO> vipOrderTimeVOS, List<VipTokens> vipTokens, String lockName,Integer downType);
    void threadLockSyncOrder(List<VipOrderTimeVO> vipOrderTimeVOS, List<VipTokens> vipTokens, String lockName,Integer downType);
    void syncOpenUnitOrder(List<VipOrderTimeVO> vipOrderTimeVOS, VipTokens token,Integer downType);

    //void syncTimeUnitOrder(VipOrderTimeVO time, VipTokens token, int page,Integer downType, Integer repeatTime);

    void ordersAdd(List<OrderInfo> orderInfoList,VipTokens vipTokens);

    //消费者-处理唯品会订单线程
    void threadSyncOrder_consumer(List<VipOrderTimeVO> vipOrderTimeVOS, VipTokens token, Integer downType);
}
